<?php

define('ctx', "/" . explode("/", dirname($_SERVER['PHP_SELF']))[1]);
//define('ctx', dirname(__FILE__) );

function redirect($url, $statusCode = 303)
{
    header('Location: ' . $url, true, $statusCode);
    die();
}